package com.zlp.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.zlp.producer.FanoutProducer;

@RestController
public class ProducerController {
	
	@Autowired
	private FanoutProducer fanoutProducer;

	@RequestMapping("/sendFanout")
	public String sendFanout(String FanoutName) {
		fanoutProducer.send(FanoutName);
		return "success";
	}

}
